<?php

if(isset($_REQUEST['name']) && isset($_REQUEST['callback']))
{
  header('content-type: application/json; charset=utf-8');
  header("content-type: Access-Control-Allow-Origin: *");
  header("content-type: Access-Control-Allow-Methods: GET, POST");
  $obj->name = $_REQUEST['name'];
  $obj->message = "Hello " . $obj->name;
  echo $_REQUEST['callback']. '(' . json_encode($obj) . ');';
}
?>